package cn.com.coding.system.service;

import cn.com.coding.common.utils.PageUtil;
import cn.com.coding.system.domin.dto.OrderGoodDto;
import cn.com.coding.system.domin.dto.UserCardProductDto;
import cn.com.coding.system.domin.UserCardEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * 订单表
 * 购物车这个概念你可以直接化为订单
 * @author mxz
 */
public interface UserCardService extends IService<UserCardEntity> {

    PageUtil queryPage(Map<String, Object> params);

    UserCardProductDto saveGoodCard(String userPid, String productPid);

    void addOrder(OrderGoodDto orderGoodDto);

    boolean goodExist(String userPid, String productPid);
}

